import request from "@/utils/request";
//商品详情
export const getShopDetail = data => {
  return request({
    url: "/mall/shopHome/product",
    method: "post",
    data
  });
};
/**
 * 商品详情属性
 * @param data
 * @returns {*}
 */
export const getStastsList = data => {
  return request({
    url: "/mall/shopHome/stastsList",
    method: "post",
    data
  });
};

/**
 * 获取品牌信息
 */
export const brandDetail = data => {
  return request({
    url: "/mall/shopHome/band",
    method: "post",
    data
  });
};

/**
 * 商品详情页-查询建模详情
 */
export const getModelDetail = data => {
  return request({
    url: "/mall/tenant/business/shopModel/apply/selectModelListByType",
    method: "post",
    data
  });
};
/**
 * 申请授权建模
 */
export const applyModel = data => {
  return request({
    url: "/mall/tenant/business/shopModel/apply/apply",
    method: "post",
    data
  });
};
// ============================================================================================================
//获取数据字典
export const getEnumAll = props => {
  return request({
    url: "/dbo/system/dict/type/getAll",
    method: "get",
    params: props
  });
};
//获取收藏标签列表
export const getLabelList = data => {
  return request({
    url: "/mall/shop/product/collect/get-label-list",
    method: "post",
    data
  });
};
//添加收藏标签
export const addPproductLabel = data => {
  return request({
    url: "/mall/shop/product/collect/add-product-label",
    method: "post",
    data
  });
};
//删除收藏标签
export const delPproductLabel = data => {
  return request({
    url: "/mall/shop/product/collect/del-product-label",
    method: "post",
    data
  });
};

//确认收藏
export const collectConfirm = data => {
  return request({
    url: "/mall/shop/product/collect/confirm",
    method: "post",
    data
  });
};
//取消收藏
export const collectCancel = data => {
  return request({
    url: "/mall/shop/product/collect/cancel",
    method: "post",
    data
  });
};
//商品规格筛选-sku置灰
export const selectSpe = data => {
  return request({
    url: "/mall/shopHome/selectSpe",
    method: "post",
    data
  });
};
